<div class="limited"><div id="form"></div></div>
<script>

var inputs=[
	{"type":"accordion","name":"blocks",mode:"blocks","label":"",pages:[
			{id:"main-block",name:"{{!Main information}}"}
		]
	},
	{type:"label",name:"name",label:"{{!Model name}}",width:500,value:{{JSON:model.name}},xpath:".main-block"},
	{type:"label",name:"table",label:"{{!Table name}}",width:500,value:{{JSON:model.table}},xpath:".main-block"},
	{type:"label",name:"folder",label:"{{!Folder name}}",width:500,value:{{JSON:model.folder}},xpath:".main-block"}
];
var frm=$("#form").ajajform({
	header: "{{!Delete base model settings}}",
	submit: {
		url: '{{action}}',
		value: "{{!Delete}}",
		ajaj: true,
		params: {"mode":"delete2","id":"{{model.name}}","ajaj":1},
	},
	footerButtons: []
});
for (var i=0;i<inputs.length;i++) {
	frm.ajajform("insertWidget",inputs[i].tabname,null,inputs[i]);
}
</script>

